package com.info.zhiduoduo.core.dto.dingdingnotice;

/**
 * 钉钉群Code
 */
public enum GroupCode {
	/** 普通推送群 */
	NORMAL(1, ""),
	// NORMAL(1, ""),

	;

	public int type;
	public String token;

	GroupCode(int type, String token) {
		this.type = type;
		this.token = token;
	}

	public static String getUrlByType(int type) {
		for (GroupCode groupCode : GroupCode.values()) {
			if (groupCode.type == type) {
				return groupCode.token;
			}
		}
		return "";

	}
}
